// Import variables using new @use syntax
@use './variables' as vars;

// 重置浏览器默认样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: vars.$font-size-base;
  font-family: vars.$font-family;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: vars.$font-family;
  font-size: vars.$font-size-base;
  color: vars.$text-color;
  background-color: vars.$background-color;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

// Reset styles are applied when this file is imported

// 重置常见元素样式
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: vars.$primary-color;
  text-decoration: none;
  transition: vars.$transition;
  &:hover {
    color: #40a9ff;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

// 清除浮动
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}